<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head th:include="head::head"></head>
<body style='background-color: white'>
<h1 th:text="${task_id}"></h1>

<h4>覆盖率测试</h4>

<div th:each="cov_report : ${cov_report_list}">
    <a th:href="${cov_report.href}" th:text="${cov_report.title}" target="_blank"></a>
</div>

<h4 th:text="'共计: ' + ${task_count} + ' 份报告'"></h4>
<div>
    <div th:each="xml_report : ${xml_report_list}" style="width: 100%; margin-top:32px; border:1px solid #000000">
        <center>
            <h2 th:text="${xml_report.id}"></h2>
        </center>
        <div>
            <div style="margin:8px;margin-top:32px; border:1px solid #000000" th:each="testsuite : ${xml_report.testsuiteList}">
                <div style="margin: 8px">
                    <div style="min-width: 15%; float:left; font-size:20px" th:text="${testsuite.name}"></div>
                    <div style="float:left; margin-left: 20px" th:text="${testsuite.timestamp}"></div>
                    <div style="float:left; margin-left: 20px" th:text="${testsuite.time}"></div>
                    <div style="clear: both"></div>
                </div>


                <div th:each="testcase : ${testsuite.testcaseList}">
                    <div th:if="${testcase.failure_count==0}" style="margin:8px; border:1px solid #000000; background: #00CC00" >
                        <div style="margin: 8px">
                            <div style="min-width: 25%; float:left" th:text="${testcase.name}"></div>
                            <div style="float:left; margin-left: 20px" th:text="${testcase.timestamp}"></div>
                            <div style="float:left; margin-left: 20px; min-width: 15%" th:text="${testcase.time}"></div>
                            <!-- <div style="float:left; margin-left: 20px" th:text="${testcase.result}"></div> -->
                            <div style="clear: both"></div>
                        </div>
                    </div>
                    <div th:if="${testcase.failure_count!=0}" style="margin:8px; border:1px solid #000000; background: #FF0000" >
                        <div style="margin: 8px">
                            <div style="min-width: 25%; float:left" th:text="${testcase.name}"></div>
                            <div style="float:left; margin-left: 20px" th:text="${testcase.timestamp}"></div>
                            <div style="float:left; margin-left: 20px; min-width: 15%" th:text="${testcase.time}"></div>
                            <!-- <div style="float:left; margin-left: 20px" th:text="${testcase.result}"></div> -->
                            <div style="clear: both"></div>

                            <div style="margin:8px; border:1px solid #000000;" th:each="failure : ${testcase.failureList}" th:text="${failure}"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>